#include <iostream>
#include <algorithm>
#include <vector>


using namespace std;


int main(){
	vector<int> a = {1,2,3,4,5,6,7,8,9,}; // 要求输出6,7,8,9,5,1,2,3,4
	rotate(a.begin(), a.begin() + 4, a.end());
	rotate(a.begin(), a.begin() + 1, a.begin() + 5); // 第三个参数是不包含的
	
	for(auto i : a){
		cout << i << ",";
	}
	
	cout << endl;
	return 0;
	
}